package com.zboot.zbootadmin.project.base.mappers;

import com.zboot.zbootadmin.project.base.entity.MachieryPart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author draw
 * @since 2021-05-08
 */
@Repository
@Mapper
public interface MachieryPartMapper extends BaseMapper<MachieryPart> {

    @Update(value = "update machiery_part set status=1 where id=#{id} ")
    void updateToDelete(@Param(value = "id") Long id);
}
